{block header}
	<div class="hero-unit">
		<h1>Seznam rezervací</h1>
	</div>
{/block}

{block content}
	<table n:if="$reservations" class="table table-bordered table-condensed table-striped table-hover">
		<thead>
			<th class="span3">Název</th>
			<th>Ulice</th>
			<th>Město</th>
			<th>GPS</th>
			<th class="span2">Akce</th>
		</thead>
		<tbody>
			<tr n:foreach="$reservations as $reservation">
				<td>{$reservation->name}</td>
				<td>{$reservation->street}</td>
				<td>{$reservation->zip} {$reservation->city}</td>
				<td>{$reservation->coord}</td>
				<td>
					<a n:href="detail, $reservation->id" class="ajax"><i class="icon-list-alt" title="Detail rezervace"></i></a>
					<a n:href="edit, $reservation->id" class="ajax"><i class="icon-pencil" title="Upravit rezervaci"></i></a>
					<a n:href="delete, $reservation->id" class="ajax"><i class="icon-trash" title="Smazat rezervaci"></i></a>
				</td>
			</tr>
		</tbody>
	</table>
	<p n:if="!$reservations">Nemáte v databázi žádné rezervace.</p>
